<!--
**********************************************************
* @Author: 张小平
* @Date:   2024-05-01
* @Email:  qqshuqian@163.com
* @Last modified: 最后修改日期
* @Description: 文件描述
**********************************************************
-->
<template>
  <div class="user">
    <basic-container>
      <avue-crud
              v-model="form"
              v-model:search="searchForm"
              v-model:page="page"
              :option="option"
              :data="tableData"
              :permission="getPermission"
              v-bind="bindVal"
              v-on="onEvent"
              :before-open="beforeOpen"
      >
      </avue-crud>
    </basic-container>
  </div>
</template>

<script>
  import crud from "@/framework-core/mixins/crud";
  import {tableOption} from "./sysParam.js";

  export default {
    name: "sys_param",
    mixins: [crud],
    data() {
      return {
        pageConfig:{"url":"/sys/sysParam"},
        option: tableOption,
        defaultProps: {
          label: "name",
          value: "id"
        },
      };
    },
    computed: {
      ...mapState({
        permissions: (state) => state.user.permission,
      }),
      created() {
        this.init();
      }
    },
    methods: {
      getPermission:function(key, row, index) {
        return true;
        //return this.getCommPermission(key, row, index);
      },
      init() {

      },

      beforeOpen(show, type) {
        show();
      }

    }
  };
</script>
<style lang="scss">

</style>
